package com.hgm.travelapp.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutManager
import com.hgm.travelapp.adapter.RecyclerViewAdapter2
import com.hgm.travelapp.databinding.FragmentTicketingBinding

class TicketingFragment() : Fragment() {

    private val mBinding: FragmentTicketingBinding by lazy {
        FragmentTicketingBinding.inflate(layoutInflater)
    }

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        return mBinding.root
    }

    override fun onActivityCreated(savedInstanceState: Bundle?) {
        super.onActivityCreated(savedInstanceState)

        mBinding.recyclerTicker.apply {
            layoutManager = LinearLayoutManager(activity, LinearLayoutManager.VERTICAL, false)
            adapter=RecyclerViewAdapter2(childFragmentManager,0)
        }


    }

}